package com.joysuch.wwyt.screen.service;

import com.joysuch.wwyt.core.exception.ApiBusinessException;
import com.joysuch.wwyt.screen.entity.ScreenMapPerspective;
import com.baomidou.mybatisplus.extension.service.IService;
import com.joysuch.wwyt.screen.vo.ScreenMapPerspectiveVO;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author jwk
 * @since 2021-09-06
 */
public interface ScreenMapPerspectiveService extends IService<ScreenMapPerspective> {

    /**
     * 获取地图视角配置列表
     * @return
     */
    List<ScreenMapPerspectiveVO> findList();

    /**
     * 获取当前用户的大屏视觉配置
     * @return
     */
    ScreenMapPerspective getPerspectiveByCurUser();

    /**
     * 保存视觉配置
     * @param screenMapPerspective
     * @return
     * @throws ApiBusinessException
     */
    boolean saveMapPerspective(ScreenMapPerspective screenMapPerspective) throws ApiBusinessException;
}
